home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_windowmaker.idb / usr / freeware / share / WindowMaker / menu.sl.z / menu.sl
Encoding:
Text File  |  1999-07-16  |  7.4 KB  |  204 lines

  1. /*
  2.  * Root Menu definition for WindowMaker in Slovenian language
  3.  *
  4.  * Syntax is:
  5.  *
  6.  * <Title> [SHORTCUT <Shortcut>] <Command> <Parameters>
  7.  *
  8.  * <Title> is any string to be used as title. Must be enclosed with " if it
  9.  *     has spaces
  10.  * 
  11.  * SHORTCUT specifies a shortcut for that item. <Shortcut> has the
  12.  * same syntax of the shortcuts key options in the 
  13.  * $HOME/GNUstep/Defaults/WindowMaker file, such as RootMenuKey or MiniaturizeKey.
  14.  *
  15.  * You can't specify a shortcut for a MENU or OPEN_MENU entry.
  16.  * 
  17.  * <Command> one of the valid commands: 
  18.  *    MENU - starts (sub)menu definition
  19.  *    END  - end (sub)menu definition
  20.  *    OPEN_MENU - opens a menu from a file, pipe or directory(ies) contents
  21.  *            and eventually precede each with a command.
  22.  *    WORKSPACE_MENU - adds a submenu for workspace operations. Only one
  23.  *            workspace_menu is allowed.         
  24.  *    EXEC <program> - executes an external program
  25.  *    EXIT - exits the window manager
  26.  *    RESTART [<window manager>] - restarts WindowMaker or start another
  27.  *            window manager
  28.  *    REFRESH - refreshes the desktop
  29.  *    ARRANGE_ICONS - rearranges the icons on the workspace
  30.  *    SHUTDOWN - kills all clients (and close the X window session)
  31.  *    SHOW_ALL - unhides all windows on workspace
  32.  *    HIDE_OTHERS - hides all windows on the workspace, except the
  33.  *        focused one (or the last one that received focus)
  34.  *    SAVE_SESSION - saves the current state of the desktop, which include
  35.  *               all running applications, all their hints (geometry,
  36.  *               position on screen, workspace they live on, the dock
  37.  *               or clip from where they were launched, and
  38.  *               if minimized, shaded or hidden. Also saves the current
  39.  *               workspace the user is on. All will be restored on every
  40.  *               start of windowmaker until another SAVE_SESSION or
  41.  *               CLEAR_SESSION is used. If SaveSessionOnExit = Yes; in
  42.  *               WindowMaker domain file, then saving is automatically
  43.  *               done on every windowmaker exit, overwriting any
  44.  *               SAVE_SESSION or CLEAR_SESSION (see below).
  45.  *    CLEAR_SESSION - clears any previous saved session. This will not have
  46.  *               any effect if SaveSessionOnExit is True.
  47.  *    INFO - shows the Info Panel
  48.  *
  49.  * OPEN_MENU syntax:
  50.  *   1. File menu handling.
  51.  *    // opens file.menu which must contain a valid menu file and inserts
  52.  *    // it in current position
  53.  *    OPEN_MENU file.menu
  54.  *   2. Pipe menu handling.
  55.  *    // opens command and uses it's stdout to construct menu.
  56.  *    // Command's output must be a valid menu description.
  57.  *    // The space between '|' and command itself is optional.
  58.  *    OPEN_MENU | command
  59.  *   3. Directory handling.
  60.  *    // Opens one or more directories and construct a menu with all
  61.  *    // the subdirectories and executable files in them sorted
  62.  *    // alphabetically.
  63.  *    OPEN_MENU /some/dir [/some/other/dir ...]
  64.  *   4. Directory handling with command.
  65.  *    // Opens one or more directories and construct menu with all
  66.  *    // subdirectories and readable files in them sorted alphabetically,
  67.  *    // preceding each of them with command.
  68.  *    OPEN_MENU /some/dir [/some/other/dir ...] WITH command -options
  69.  *
  70.  *
  71.  * <Parameters> is the program to execute.
  72.  *
  73.  * ** Options for command line in EXEC:
  74.  * %s - substitute with current selection
  75.  * %a(message) - opens a input box with the message and do substitution with
  76.  *        what you typed
  77.  * %w - substitute with XID for the current focused window
  78.  *
  79.  * You can override special characters (as % and ") with the \ character:
  80.  * ex: xterm -T "\"Hello World\""
  81.  *
  82.  * You can also use character escapes, like \n
  83.  *
  84.  * Each MENU statement must have one mathching END statement at the end.
  85.  *
  86.  * Example:
  87.  *
  88.  * "Test" MENU
  89.  *    "XTerm" EXEC xterm
  90.  *        // creates a submenu with the contents of /usr/openwin/bin
  91.  *    "XView apps" OPEN_MENU "/usr/openwin/bin"
  92.  *        // some X11 apps in different directories
  93.  *    "X11 apps" OPEN_MENU /usr/X11/bin $HOME/bin/X11
  94.  *        // set some background images
  95.  *    "Background" OPEN_MENU $HOME/images /usr/share/images WITH wmsetbg -u -t
  96.  *        // inserts the style.menu in this entry
  97.  *    "Style" OPEN_MENU style.menu
  98.  * "Test" END
  99.  */
  100.  
  101. #include "wmmacros"
  102.  
  103. "Aplikacije" MENU
  104.     "Informacije" MENU
  105.         "Informacije o programu..." INFO_PANEL
  106.         "Licenca..." LEGAL_PANEL
  107.         "Sistemska konzola" EXEC xconsole
  108.         "Obremenitev sistema" EXEC xosview || xload
  109.         "Seznam procesov" EXEC xterm -e top
  110.         "PomoΦ (Iskalec man strani)" EXEC xman
  111.     "Informacije" END
  112.     "XTerm" EXEC xterm -sb 
  113.     "Rxvt" EXEC rxvt -bg black -fg white -fn fixed
  114.     "Delovni prostori" WORKSPACE_MENU
  115.     "Aplikacije" MENU
  116.         "Grafika" MENU
  117.             "Gimp" EXEC gimp >/dev/null
  118.             "XV" EXEC xv
  119.             "XPaint" EXEC xpaint
  120.             "XFig" EXEC xfig
  121.         "Grafika" END
  122.         "X File Manager" EXEC xfm
  123.         "OffiX Files" EXEC files
  124.         "LyX" EXEC lyx
  125.         "Netscape" EXEC netscape 
  126.           "Ghostview" EXEC ghostview %a(Enter file to view)
  127.         "Acrobat" EXEC /usr/local/Acrobat3/bin/acroread %a(Enter PDF to view)
  128.           "TkDesk" EXEC tkdesk
  129.     "Aplikacije" END
  130.     "Urejevalniki besedil" MENU
  131.         "XFte" EXEC xfte
  132.         "XEmacs" EXEC xemacs || emacs
  133.         "XJed" EXEC xjed 
  134.         "NEdit" EXEC nedit
  135.         "Xedit" EXEC xedit
  136.         "VI" EXEC xterm -e vi
  137.     "Urejevalniki besedil" END
  138.     "Drugo" MENU
  139.         "Xmcd" EXEC xmcd 2> /dev/null
  140.         "Xplaycd" EXEC xplaycd
  141.         "Xmixer" EXEC xmixer
  142.     "Drugo" END
  143.     "Uporabi programi" MENU
  144.         "Kalkulator" EXEC xcalc
  145.         "Lastnosti oken" EXEC xprop | xmessage -center -title 'xprop' -file -
  146.         "Pregled pisav" EXEC xfontsel
  147.         "Terminal emulator" EXEC xminicom
  148.         "Povecevalno steklo" EXEC xmag
  149.         "Barvna lestvica" EXEC xcmap
  150.         "XKill" EXEC xkill
  151.         "ASClock" EXEC asclock -shape
  152.         "Odlagali╣Φe (clipboard)" EXEC xclipboard
  153.     "Uporabni programi" END
  154.  
  155.     "Izbira" MENU
  156.         "Kopiraj" EXEC echo '%s' | wxcopy
  157.         "Po╣lji po po╣ti" EXEC xterm -name mail -T "Pine" -e pine %s
  158.         "Odpri WEB stran" EXEC netscape %s
  159.         "Poi╣Φi v navodilih" EXEC MANUAL_SEARCH(%s)
  160.     "Izbira" END
  161.  
  162.     "Delovni prostor" MENU
  163.         "Skrij druge" HIDE_OTHERS
  164.         "Poka╛i vse" SHOW_ALL
  165.         "Poravnaj ikone" ARRANGE_ICONS
  166.         "Obnovi" REFRESH
  167.         "Zakleni" EXEC xlock -allowroot -usefirst
  168.         "Shrani session" SAVE_SESSION
  169.         "Izbri╣i shranjen session" CLEAR_SESSION
  170.     "Delovni prostor" END
  171.  
  172.     "Izgled" MENU
  173.         "Teme" OPEN_MENU -noext THEMES_DIR $HOME/GNUstep/Library/WindowMaker/Themes WITH setstyle
  174.         "Stili" OPEN_MENU -noext STYLES_DIR $HOME/GNUstep/Library/WindowMaker/Styles WITH setstyle
  175.         "Zbirke ikon" OPEN_MENU -noext ICON_SETS_DIR $HOME/GNUstep/Library/WindowMaker/IconSets WITH seticons
  176.         "Odzadje" MENU
  177.             "Barva" MENU
  178.                             "╚rna" WS_BACK '(solid, black)'
  179.                             "Modra"  WS_BACK '(solid, "#505075")'
  180.                 "Indigo" WS_BACK '(solid, "#243e6c")'
  181.                 "Temno modra" WS_BACK '(solid, "#180090")'
  182.                             "VioliΦna" WS_BACK '(solid, "#554466")'
  183.                             "P╣eniΦna"  WS_BACK '(solid, "wheat4")'
  184.                             "Temno siva"  WS_BACK '(solid, "#333340")'
  185.                             "Vinsko rdeΦa" WS_BACK '(solid, "#400020")'
  186.             "Barva" END
  187.             "Preliv" MENU
  188.                 "Zastava" WS_BACK '(mdgradient, green, red, white, green)'
  189.                 "Nebo" WS_BACK '(vgradient, blue4, white)'
  190.             "Preliv" END
  191.             "Slike" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t
  192.         "Odzadje" END
  193.         "Shrani temo" EXEC getstyle -t $HOME/GNUstep/Library/WindowMaker/Themes/"%a(Theme name)"
  194.         "Shrani zbirko ikon" EXEC geticonset $HOME/GNUstep/Library/WindowMaker/IconSets/"%a(IconSet name)"
  195.     "Izgled" END
  196.  
  197.     "Izhod"    MENU
  198.         "Ponovno za╛eni" RESTART
  199.         "Po╛eni AfterStep" RESTART afterstep
  200.         "Izhod..."  EXIT
  201.         "Izhod iz session..." SHUTDOWN
  202.     "Izhod" END
  203. "Aplikacije" END
  204.